﻿using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 公司修改模型
    /// </summary>
    public class CompanyEditRequestDto
    {
        /// <summary>
        /// 公司Id
        /// </summary>
        [Display(Name = "公司Id")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [Display(Name = "公司名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string CompanyName { get; set; }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        [Display(Name = "联系人姓名")]
        public string Contact { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Display(Name = "联系电话")]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        [Display(Name = "联系地址")]
        public string Address { get; set; }
    }
}
